import requests


class IhrmLogin:
    def login(self, req_body):
        resp = requests.post("http://ihrm2-test.itheima.net/api/sys/login",
                             json=req_body)
        return resp

if __name__ == '__main__':
    xm = IhrmLogin()
    print(xm.login({"mobile": "13800000002", "password": "123456"}).json().get("data"))